<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>尚品汇</title>
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <meta name="render" content="webkit">
  <style>
    .root {
      width: 690px;
      border: 2px solid black;
      margin: auto;
      margin-top: 300px;
      font-size: 0px;
      text-align: center;
      text-overflow: ellipsis;
      position: relative;
      overflow: hidden;
    }

    .root:hover img {
      transform: scaleX(1.5) scaleY(1.5) rotateZ(20deg);
    }

    img {
      transition: 0.3s linear;
    }

    .mask {
      width: 690px;
      height: 458px;
      background-color: green;
      margin: auto;
      position: absolute;
      opacity: 0;
      top: 0;
      left: 0;
      color: white;
      font-size: 60px;
      line-height: 458px;
      transition: 0.5s linear;
      cursor: pointer;
    }

    .mask:hover {
      opacity: 0.5;
    }
  </style>
</head>

<body>
  <div class="root">
    <!-- 内容环绕 -->
    <img src="./assets/banner主图.png" alt="">
    <div class="mask">Keyboard</div>
  </div>

</body>

</html>